package com.demo.Main.StageOne;

import java.io.*;

public class zzz {
    public static void main(String[] args) {
        File fis = new File("E:\\KaifaMiao\\project\\file-synchronization-server\\localfile/server.txt");
        try (FileReader fr = new FileReader(fis);
             BufferedReader br = new BufferedReader(new FileReader(fis))
        ){
            while (br.ready())
            {
                String s = br.readLine();
                // System.out.println(s);
                if ("".equals(s))
                {
                    continue;
                }
                System.out.println(s);
            }
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
